﻿<!--
  // Deep Earth is a community project available under the Microsoft Public License (Ms-PL)
  // Code is provided as is and with no warranty - Use at your own risk
  // View the project and the latest code at http://DeepEarth.codeplex.com/
-->

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ToolPanel="clr-namespace:DeepEarth.Client.Controls;assembly=DeepEarth.Client.Controls.ToolPanel"
    xmlns:CoordinatePanel="clr-namespace:DeepEarth.Client.Controls.DEMap">
    	
    <Style TargetType="CoordinatePanel:CoordinatePanel">
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="CoordinatePanel:CoordinatePanel">
                    <ToolPanel:ToolPanel x:Name="PART_toolPanel">
                        <ToolPanel:ToolPanel.Content>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="auto"></ColumnDefinition>
                                    <ColumnDefinition Width="auto"></ColumnDefinition>
                                    <ColumnDefinition Width="*"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <TextBlock x:Name="PART_yCoordTextBlock" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center" Foreground="{TemplateBinding Foreground}" FontSize="{TemplateBinding FontSize}"/>
                                <TextBlock x:Name="PART_xCoordTextBlock" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="{TemplateBinding Foreground}" FontSize="{TemplateBinding FontSize}"/>
                                <TextBlock x:Name="PART_zoomTextBlock" Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Center" Foreground="{TemplateBinding Foreground}" FontSize="{TemplateBinding FontSize}"/>
                            </Grid>
                        </ToolPanel:ToolPanel.Content>
                        <ToolPanel:ToolPanel.Options>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="170"></ColumnDefinition>
                                    <ColumnDefinition Width="*"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="30"></RowDefinition>
                                    <RowDefinition Height="30"></RowDefinition>
                                    <RowDefinition Height="30"></RowDefinition>
                                </Grid.RowDefinitions>
                                <StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="0">
                                    <TextBlock Text="Lat:" Width="25" Margin="2,6,2,2" TextAlignment="Right"/>
                                    <TextBox x:Name="PART_gotoLatitudeText" Margin="8,2,8,2" Width="130"  />
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="1">
                                    <TextBlock Text="Lon:" Width="25" Margin="2,6,2,2" TextAlignment="Right"/>
                                    <TextBox x:Name="PART_gotoLongitudeText" Margin="8,2,8,2" Width="130" />
                                </StackPanel>
                                <Button x:Name="PART_gotoButton" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Margin="5,5,5,5" ToolTipService.ToolTip="go"  >
                                    <Image Source="/DeepEarth.Client.Controls.DEMap.CoordinatePanel;component/Images/go.png" Width="20" Stretch="Uniform"/>
                                </Button>
                                <StackPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2">
                                    <RadioButton x:Name="PART_displayModeDecimal" Margin="2,2,2,2" Content="Decimal"  />
                                    <RadioButton x:Name="PART_displayModeDDMMSS" Margin="2,2,2,2" Content="DDMMSS" />
                                    <RadioButton x:Name="PART_displayModeUTM" Margin="2,2,2,2" Content="UTM"  />
                                </StackPanel>
                            </Grid>
                        </ToolPanel:ToolPanel.Options>
                    </ToolPanel:ToolPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>